package backpage.mapper;

import backpage.dto.EmployeeLevelAdjustmentDTO;
import backpage.dto.LevelAdjustmentRecordDTO;
import backpage.entity.LevelAdjustment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

// LevelAdjustmentMapper.java
@Mapper
public interface LevelAdjustmentMapper extends BaseMapper<LevelAdjustment> {

    List<EmployeeLevelAdjustmentDTO> selectAdjustableEmployees(@Param("departmentId") Integer departmentId,
                                                               @Param("role") Integer role);

    List<LevelAdjustmentRecordDTO> selectAdjustmentRecords(@Param("startDate") Date startDate,
                                                           @Param("endDate") Date endDate,
                                                           @Param("employeeId") Integer employeeId);
}